package com.zmn.plat.common.dto.product.tariff.item;

import com.zmn.plat.common.dto.product.tariff.base.BaseTariffProductDIO;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author tanbiao
 * @description：所选择项目，提交报价接口输入实体
 * @modifier
 * @since 2020/3/27 17:41
 **/
@Data
@Valid
@ToString(callSuper = true)
public class TariffProductItemPriceDIO extends BaseTariffProductDIO {
    private static final long serialVersionUID = -6333656654477731018L;
    /**
     * 后台产品ID
     */
    @NotNull(message = "productId不能为空")
    @Positive(message = "productId必须为大于0正整数")
    private Integer productId;

    /**
     * 故障项ID集合
     */
    @NotEmpty(message = "itemIds参数不能为空且个数不能超过100")
    @Size(min = 1, max = 100, message = "itemIds参数不能为空且个数不能超过100")
    private List<Integer> itemIds;

    /**
     * 品牌Id
     */
    @Positive(message = "brandId必须为大于0正整数")
    private Integer brandId;

    /**
     * 难度系数id，可以为空,为空则不考虑难度系数
     */
    @Positive(message = "difficultRatioId必须为大于0正整数")
    private Integer difficultRatioId;

}
